//
//  BM3U8VideoCache.h
//  Bullet
//
//  Created by  on 2019/9/18.
//  Copyright © 2019 . All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class BFileDownloaderTool;
@interface BM3U8VideoCache : NSObject

@property (nonatomic,assign) BOOL finished;

/**
 m3u8文件解析下载片段到本地

 @param m3u8LocalPath m3u8文件本地路径
 @param subUrl m3u8 web路径
 @param downloadQueue 线程
 @param complete 回调
 */
- (instancetype)initWithM3U8LocalPath:(NSString *)m3u8LocalPath subUrl:(NSString *)subUrl baseUrl:(NSString *)baseUrl queue:(NSOperationQueue *)downloadQueue complete:(void(^)(void))complete;
- (instancetype)initWithM3U8LocalPath:(NSString *)m3u8LocalPath subUrl:(NSString *)subUrl baseUrl:(NSString *)baseUrl queue:(NSOperationQueue *)downloadQueue preload:(BOOL)preload complete:(void(^)(void))complete;

- (void)startParseAndCache;


@end

NS_ASSUME_NONNULL_END
